#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>
#include<string.h>




int main()
{
	int a[] = { 1,2,3,4,5,6,1,2,3,4 };
	int i = 0;
	for (i = 0; i < 10; i++)
	{
		int j = 0; int c = 0;
		for (j =0; j < 10; j++)
		{
			if (a[i] == a[j]&&j!=i)
			{
				c = 1;
				break;
			}

		}
		if (c == 0)
		{
			printf("%d ", a[i]);
		}
	}
	return 0;
}